package person01;

public class Test {
    public static void main(String[] args) {

        Dog dog = new Dog("泰迪",2,"黄色");
        //dog.setName("大黄");
        //dog.setAge(2);
        Cat cat = new Cat("大菊",2,"加菲猫");
        //cat.setName("大菊");
        //cat.setAge(2);
        System.out.println("这只狗叫"+dog.getName()+"它今年"+dog.getAge()+"岁"+"颜色"+dog.getColor());
         dog.stat();
        System.out.println("这只猫叫"+cat.getName()+"它今年"+cat.getAge()+"岁"+"种类"+cat.getType());
         cat.stat();

    }
}
